<?php

/**
 * 生成银行 JS 数据
 */
include 'mysql_class.php';
include 'mysql_config_class.php';
header("Content-Type:text/html; charset=UTF-8");
//连接数据库
$mysql = mysql::getInstance();
$table = "banks";

/**
 * 生成JavaScript数组
 */
$timer = timer();
$banks = $mysql->getList("select bank_id from {$table} GROUP BY bank_id");
// 获取各个银行的数据
foreach ($banks as $v) {
	$items = $mysql->getList("select bank_name from {$table} WHERE bank_id = {$v['bank_id']} LIMIT 0,1");
	__print($items);
}


/* print message */
function __print( $_msg ) {
	echo '<pre>';
	print_r($_msg);
	echo '</pre>';
}


